<!doctype html>
<html lang="zh">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="author" content="504 Team">

    <link rel="icon" href="img/chess-piece-icon.png" type="image/x-icon">
    <title>注册 · 五子棋</title>

    <!-- Import Bootstrap v4.6.0 -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="css/login.css" rel="stylesheet">

    <!-- Import custom style -->
    <link href="css/general.css" rel="stylesheet">
  </head>
  <body>
    <div class="container-fluid">
      <div class="row justify-content-center">
        <div class="col-md-4">
          <div class="text-center pt-5 mt-5">
            <img src="img/login_img.png" class="img-fluid">
          </div>
        </div>
        <div class="col-md-4">
          <div class="form-signin border rounded-lg shadow-sm">
            <div class="text-center mb-4 mt-3">
              <h1 class="h4 font-weight-normal">注册 · 五子棋</h1>
            </div>
      
            <div class="text-center form-group mx-3 mb-2">
              <img src="img/default.png" class="rounded border shadow-sm" alt="" width="84px" height="84px" id="avatar">
            </div>

            <div class="form-group my-3 mx-5 px-5">
              <input type="file" class="form-control-file" id="avatarUpload" onchange="assignment()" accept="image/*">
            </div>

            <div id="nick" class="form-label-group mx-3">
              <input type="text" id="inputNick" class="form-control" placeholder=" " onfocus="focusInput()">
              <label for="nick">昵称</label>
              <div class="invalid-feedback" id="nick-msg"></div>
            </div>

            <div id="account" class="form-label-group mx-3">
              <input type="text" id="inputID" class="form-control" placeholder=" " onfocus="focusInput()">
              <label for="ID">账号</label>
              <div class="invalid-feedback" id="id-msg"></div>
            </div>
      
            <div id="password1" class="form-label-group mx-3">
              <input type="password" id="inputPassword1" class="form-control" placeholder=" " onfocus="focusInput()">
              <label for="inputPassword1">密码</label>
              <div class="invalid-feedback" id="password1-msg"></div>
            </div>
            
            <div id="password2" class="form-label-group mx-3">
              <input type="password" id="inputPassword2" class="form-control" placeholder=" " onfocus="focusInput()">
              <label for="inputPassword2">再次输入密码</label>
              <div class="invalid-feedback" id="password2-msg"></div>
            </div>

            <!-- 性别选择框 -->
            <fieldset class="form-group mx-3">
              <div class="col-sm-10" id="inputGender">
                <div class="custom-control custom-radio custom-control-inline">
                  <input type="radio" id="inputMale" name="gender" class="custom-control-input" value="男">
                  <label class="custom-control-label" for="inputMale">男</label>
                </div>
                <div class="custom-control custom-radio custom-control-inline">
                  <input type="radio" id="inputFemale" name="gender" class="custom-control-input" value="女">
                  <label class="custom-control-label" for="inputFemale">女</label>
                </div>
                <div class="custom-control custom-radio custom-control-inline">
                  <input type="radio" id="inputSecret" name="gender" class="custom-control-input" value="保密" checked>
                  <label class="custom-control-label" for="inputSecret">保密</label>
                </div>
              </div>
            </fieldset>
      
            <div class="container-fluid mt-4 mb-3">
              <div class="row justify-content-center">
                <div class="text-center col-4">
                  <button class="btn btn-primary btn-block" type="button" id="register-btn">注 册</button>
                </div>
                <div class="text-center col-4">
                  <a class="btn btn-primary btn-block" href="login.html" role="button">已有账号</a>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="row mt-5">
        <div class="col">
          <p class="text-muted text-center">504 Team &copy; 2021</p>
        </div>
      </div>
    </div>
    <script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>
    <script src="js/cookie.js"></script>
    <script src="js/register.js"></script>
</body>
</html>
